package com.lxujia.ruankao.model;

public class QuestionAnswerItem {
    private String answerText; // 问题选项
    private int answerIcon;    // 问题选项对应的 icon
    private boolean isRightAnswer = false;  // 是否正确答案选项
    private boolean isUserAnswer = false; //是否为用户选择的选项

    public QuestionAnswerItem(String text, int icon,
                              boolean isRightAnswer, boolean isUserAnswer) {
        this.answerText = text;
        this.answerIcon = icon;
        this.isRightAnswer = isRightAnswer;
        this.isUserAnswer = isUserAnswer;
    }

    public String getAnswerText() {
        return answerText;
    }

    public void setAnswerText(String answerText) {
        this.answerText = answerText;
    }

    public int getAnswerIcon() {
        return answerIcon;
    }

    public void setAnswerIcon(int answerIcon) {
        this.answerIcon = answerIcon;
    }

    public boolean isRightAnswer() {
        return isRightAnswer;
    }

    public void setRightAnswer(boolean rightAnswer) {
        isRightAnswer = rightAnswer;
    }

    public boolean isUserAnswer() {
        return isUserAnswer;
    }

    public void setUserAnswer(boolean userAnswer) {
        isUserAnswer = userAnswer;
    }
}
